import request from "@/utils/request";

// 分页查询活动列表
export const queryPageApi = (data) => request.get("/activities", { params: data });

// 添加活动
export const addApi = (data) => request.post("/activities", data);

// 根据ID查询活动详情
export const queryByIdApi = (id) => request.get(`/activities/${id}`);

// 修改活动
export const updateApi = (data) => request.put("/activities", data);

// 删除活动
export const deleteApi = (id) => request.delete(`/activities/${id}`);